package com.zzuli.ylsystem.dao;

import com.zzuli.ylsystem.entity.Middle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MiddleDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Middle record);

    int insertSelective(Middle record);

    Middle selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Middle record);

    int updateByPrimaryKey(Middle record);

    @Select("select * from middle where dept in(1,2,3)")
    List<Middle> selectDept();

    @Select("select * from middle where sign=1")
    List<Middle> selectSign1();

    @Select("select * from middle where sign=2")
    List<Middle> selectSign2();

    @Select("select * from middle where sign=3")
    List<Middle> selectSign3();
}